<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"      
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:ic="http://ivyteam.ch/jsf/component"
      xmlns:p="http://primefaces.org/ui"
      xmlns:pe="http://primefaces.org/ui/extensions"
      xmlns:pm="http://primefaces.org/mobile">
 
   <p:dialog id="historyDialog" widgetVar="historyViewDialogVar">
   			History task #{data.selectedTask.id}
 		 <p:dataTable value="#{data.histories}" var="history" style="margin-top:5px;" >
	    	<p:column headerText="Timestamp">
	    	 <p:calendar value="#{history.createdTime}" pattern="MM/dd/yyyy HH:mm:ss" disabled="true" />    
<!-- 	            #{history.createdTime} -->
	        </p:column>
	        <p:column headerText="User">  
	            #{history.modifiedBy} 
	        </p:column>
	        <p:column headerText="Action">  
	            #{history.action} 
	        </p:column>
	        <p:column headerText="From">  
	            #{history.from} 
	        </p:column>
	        <p:column headerText="To">  
	            #{history.to} 
	        </p:column>
	    </p:dataTable>
 	</p:dialog>
</html>